import { Notification } from 'element-ui';
import router from '@/router'

const meetingWebSocket = new WebSocket(process.env.VUE_APP_BASE_WS + '/meeting')

meetingWebSocket.onopen = function (event) {
  // Notification.success("连接成功！")
}

meetingWebSocket.onmessage = function (event) {
  const notif = Notification.success({
    title: '提示!!!',
    duration: 0,
    dangerouslyUseHTMLString: true,
    message: `<el-button type="text" style="cursor: pointer">${event.data}</el-button>`,
    position:"bottom-right",

  })
}

